#!/bin/bash

age=23
if [ $age -le 18 ]; then
echo "未成年"
else
echo "成年"
fi


if [ $age -le 18 ];then
echo "未成年"
elif [ $age -gt 18 ] && [ $age -lt 30 ]; then
echo "青年"
elif [ $age -ge 30 ] && [ $age -lt 60 ]; then
echo "中年"
else
echo "老年"
fi